package com.zcheng.uc;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.zuul.EnableZuulProxy;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * @ClassName:
 * @ClassDescribe:
 * @createPerson: zhaocheng
 * @createDate: 2017-11-29  12:52
 */
@SpringBootApplication
@EnableDiscoveryClient       /**此发现客户端不必要有，因为eurekaClient中已有*/
@EnableEurekaClient
@MapperScan("com.zcheng.uc.mapper")
@EnableTransactionManagement               /**开启事务*/
public class UserCenterBootstrap {
    public static void main(String[] args) {
        SpringApplication.run(UserCenterBootstrap.class, args);

        //TODO
        //增删改成 简单化
        /**
         *  其中遇到坑
         *
         * 1.
         */
    }
}